from django.shortcuts import render
from rest_framework import viewsets

from rules.models import RulesModel
from rules.serializers import RulesSerializer


class RulesViewSet(viewsets.ModelViewSet):
  """规则"""

  queryset = RulesModel.objects.all()
  serializer_class = RulesSerializer